<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title></title>
		<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">
		<link rel="stylesheet" href="./css/index.css">
		<style>
			.branch {
				padding-bottom: 20px;
			}

			/* 图片放大专用样式 */
			.image-container {
				position: relative;
				flex: 1;
				align-self: flex-start;
			}

			.zoomable-image {
				width: 500px;
				height: auto;
				border-radius: 6px;
				box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
				transition: transform 0.3s ease, box-shadow 0.3s ease;
				cursor: pointer;
			}

			/* 放大镜图标 */
			.zoom-icon {
				position: absolute;
				top: 10px;
				right: 10px;
				background-color: rgba(255, 255, 255, 0.7);
				width: 30px;
				height: 30px;
				border-radius: 50%;
				display: flex;
				align-items: center;
				justify-content: center;
				opacity: 0;
				transition: opacity 0.3s ease;
			}

			.image-container:hover .zoom-icon {
				opacity: 1;
			}

			/* 放大模态框 */
			.modal-overlay {
				position: fixed;
				top: 0;
				left: 0;
				right: 0;
				bottom: 0;
				background-color: rgba(0, 0, 0, 0.8);
				display: none;
				justify-content: center;
				align-items: center;
				z-index: 1000;
			}

			.modal-image {
				max-width: 90%;
				max-height: 90%;
				border-radius: 8px;
				box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
			}

			.close-modal {
				position: absolute;
				top: 20px;
				right: 20px;
				color: white;
				font-size: 30px;
				cursor: pointer;
			}
		</style>
	</head>
	<body>
		<!-- 头部区域 -->
		<header class="hospital-header">
			<div class="hospital-container">
				<div class="hospital-topbar">
					<div class="hospital-logo" style="margin:18px 105px 0px 8px">
						<img src="./static/imgs/logo.jpg" width="260px" alt="医院标志">
					</div>
					<div class="header-rg">
						<span style="font-size: 14px;">
							<a href="appointments.html" target="_blank"
								style="text-decoration: none; color: dimgray;">预约挂号</a>
							|
							<a href="zhuanjiaList.html" target="_blank"
								style="text-decoration: none; color: dimgray;">专家介绍</a>
							|
							<a href="lyjt.html" target="_blank" style="text-decoration: none; color: dimgray;">来院交通</a>
							|
							<a href="contact.html" target="_blank"
								style="text-decoration: none; color: dimgray;">联系我们</a>
						</span>
						<div class="hospital-search">
							<input type="text" placeholder="搜索..." style="width: 210px;">
							<input type="image" placeholder="搜索..." src="static/imgs/ss.gif">
						</div>
					</div>
				</div>
				<nav class="hospital-nav">
					<ul class="nav-menu">
						<li><a href="index.html">首页</a></li>
						<li><a href="zhuanjiaList.html">专家介绍</a></li>
						<li><a href="chat.html">智能预约</a></li>
						<li><a href="medical-info.html">医疗知识库</a></li>
						<li><a href="appointments.html">我的预约</a></li>
						<li><a href="profile.html">个人中心</a></li>
						<li><a href="lyjt.html">来院交通</a></li>
						<li><a href="#">联系我们</a></li>
					</ul>
				</nav>
			</div>
		</header>

		<!-- 主要内容区 -->
		<main class="hospital-main" style="padding-top: 8px;">
			<div class="hospital-container">
				<div class="content-row">
					<div class="main-content">
						<div class="content-card" style="padding: 5px;">
							<img src="static/imgs/contact-banner.jpg" alt="医院概况" style="width: 100%;height: 100%;" />
						</div>
						<div class="content-card">
							<div class="card-title">
								<span>联系我们</span>
							</div>
							<div class="card-body" style="display: flex; gap: 30px;">
								<!-- 左侧文本内容 -->
								<div style="flex: 1;">
									<div class="branch">
										<h4>青岛市市立医院（集团）</h4>
										<p class="english-name">Qingdao Municipal Hospital (Group)</p>
									</div>

									<div class="branch">
										<h5>青岛市市立医院（集团）本部</h5>
										<p><i class="icon-location"></i> 青岛市胶州路1号</p>
										<p><i class="icon-phone"></i> 电话：0532—82716767</p>
									</div>

									<div class="branch">
										<h5>青岛市市立医院（集团）东院</h5>
										<p><i class="icon-location"></i> 青岛市东海中路5号</p>
										<p><i class="icon-phone"></i> 电话：0532—82716868</p>
									</div>

									<div class="branch">
										<h5>青岛市市立医院（集团）西院</h5>
										<p><i class="icon-location"></i> 青岛市朝城路2号甲</p>
										<p><i class="icon-phone"></i> 电话：0532—82716767</p>
									</div>

									<div class="branch">
										<h5>青岛市市立医院（集团）皮肤病防治院</h5>
										<p><i class="icon-location"></i> 青岛市朝城路2号甲</p>
										<p><i class="icon-phone"></i> 电话：0532—82716767</p>
									</div>

									<div class="branch">
										<h5>青岛市市立医院（集团）徐州路院区</h5>
										<p><i class="icon-location"></i> 青岛市徐州路90号</p>
									</div>

									<div class="contact-email">
										<h5>医院邮箱：</h5>
										<p><i class="icon-email"></i> qdsslyybgs@qd.shandong.cn</p>
									</div>
								</div>

								<!-- 右侧图片 -->
								<div class="image-container" style="flex: 1; margin-top: 20px;">
									<img src="static/imgs/contact-map.jpg" alt="医院分部地图" class="zoomable-image"
										id="contact-map">
									<div class="zoom-icon">
										<i class="fas fa-search-plus"></i>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
		</main>

		<div class="modal-overlay" id="image-modal">
			<span class="close-modal">&times;</span>
			<img src="" class="modal-image" id="modal-image-content">
		</div>

		<!-- 页脚区域 -->
		<footer class="hospital-footer">
			<div class=""></div>
			<div>
				<p>Copyright©青岛市市立医院（集团）</p>
				<p>鲁ICP备09051934号</p>
				<p>医院邮箱：qdsslyybgs@qd.shandong.cn</p>
				<p>技术支持：22计算机3姚志诚</p>
			</div>
		</footer>
		<script src="./js/index.js"></script>
		<script>
			// 图片放大功能
			document.addEventListener('DOMContentLoaded', function() {
				const zoomableImage = document.getElementById('contact-map');
				const modal = document.getElementById('image-modal');
				const modalImage = document.getElementById('modal-image-content');
				const closeModal = document.querySelector('.close-modal');

				if (zoomableImage) {
					zoomableImage.addEventListener('click', function() {
						modalImage.src = this.src;
						modal.style.display = 'flex';
						document.body.style.overflow = 'hidden'; // 禁止页面滚动
					});
				}

				closeModal.addEventListener('click', function() {
					modal.style.display = 'none';
					document.body.style.overflow = ''; // 恢复页面滚动
				});

				modal.addEventListener('click', function(e) {
					if (e.target === modal) {
						modal.style.display = 'none';
						document.body.style.overflow = ''; // 恢复页面滚动
					}
				});
			});
		</script>
	</body>
</html>